package org.streets.eis.ext.analysis.entities;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import org.streets.eis.ext.analysis.components.ColumnWrapper;

@Entity
@Table(name="eis_query_where")
public class WhereField extends Field implements Serializable {

	private static final long serialVersionUID = 1L;
	
	@Column
	private String alias;
	@Column
	private String funcSign;
	@Column
	private String operSign;
	@Column
	private String value;	
	//@Column
	//private String valueType;//1.普通值；2.表达式；	
	@Column
	private Boolean parameterized;

	private String dispValue;//显示值
	
	public WhereField(){
		super();
		this.parameterized = false;
		setDataType("string");
	}
	
	public WhereField(String tableCode,String fieldCode,String fieldName){
		super( tableCode,fieldCode,fieldName);
		this.parameterized = false;		
		setDataType("string");
	}

	
	public WhereField(ColumnWrapper col){
		super(col);
		this.parameterized = false;		
		if (col != null){
		setDataType(col.getType());
		}
	}

	public void setAlias(String alias) {
		this.alias = alias;
	}

	public String getAlias() {
		return alias;
	}

	public void setFuncSign(String funcSign) {
		this.funcSign = funcSign;
	}

	public String getFuncSign() {
		return funcSign;
	}

	public void setOperSign(String opSign) {
		this.operSign = opSign;
	}

	public String getOperSign() {
		return operSign;
	}

 
	public void setValue(String value) {
		this.value = value;
	}

	public String getValue() {
		return value;
	}

	public void setDispValue(String dispValue) {
		this.dispValue = dispValue;
	}

	public String getDispValue() {
		return dispValue;
	}

	public void setParameterized(Boolean param) {
		this.parameterized = param;
	}

	public Boolean getParameterized() {
		return parameterized;
	}

	public Boolean isParameterized() {
		return parameterized;
	}
	 
 

	 
}
